package com.ruoyi.system;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class Test {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String result = encoder.encode("abc123");
        System.out.println(result);
        boolean matches = encoder.matches("abc123", result);
        System.out.println(matches);
    }
}

